package com.ldx.java_chatroom.controller;

import com.ldx.java_chatroom.service.MessageService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MessageController {
    @Resource
    MessageService messageService;
    @GetMapping("/message")
    public Object getMessagesBySessionId(int sessionId){
        return messageService.getMessagesBySessionId(sessionId);
    }
}
